IF (CMAKE_HOST_WIN32)

	SET(CORE_SDK_DIR ${THIRD_PARTY}/windows/x86/core-sdk)
	IF(CMAKE_SIZEOF_VOID_P EQUAL 8)
		SET(CORE_SDK_DIR ${THIRD_PARTY}/windows/x64/core-sdk)
	ENDIF()

	SET(CORE_SDK_INCLUDE_DIR ${CORE_SDK_DIR}/include)
	SET(CORE_SDK_LIB_DIR  ${CORE_SDK_DIR}/lib)
	SET(CORE_SDK_LIBS ${CORE_SDK_LIB_DIR}/Base.lib ${CORE_SDK_LIB_DIR}/QosFec.lib)

ELSE()

	IF(CMAKE_TOOLCHAIN_FILE)
		IF (CMAKE_SYSTEM_NAME STREQUAL Android)

			IF (ANDROID_ABI STREQUAL armeabi-v7a)
				SET(CORE_SDK_DIR ${THIRD_PARTY}/android/core-sdk/armeabi-v7a)
			ELSEIF (ANDROID_ABI STREQUAL arm64-v8a)
				SET(CORE_SDK_DIR ${THIRD_PARTY}/android/core-sdk/arm64-v8a)
			ENDIF()

			SET(CORE_SDK_INCLUDE_DIR ${CORE_SDK_DIR}/include)
			SET(CORE_SDK_LIB_DIR ${CORE_SDK_DIR}/lib)
		ELSEIF (CMAKE_C_COMPILER MATCHES "hisiv300")
			SET(CORE_SDK_DIR ${THIRD_PARTY}/hisiv300/core-sdk)
			SET(CORE_SDK_INCLUDE_DIR ${CORE_SDK_DIR}/include)
			SET(CORE_SDK_LIB_DIR ${CORE_SDK_DIR}/lib)
		ELSEIF (CMAKE_C_COMPILER MATCHES "hisiv400")
			SET(CORE_SDK_DIR ${THIRD_PARTY}/hisiv400/core-sdk)
			SET(CORE_SDK_INCLUDE_DIR ${CORE_SDK_DIR}/include)
			SET(CORE_SDK_LIB_DIR ${CORE_SDK_DIR}/lib)
		ELSEIF (CMAKE_C_COMPILER MATCHES "hisiv500")
			SET(CORE_SDK_DIR ${THIRD_PARTY}/hisiv500/core-sdk)
			SET(CORE_SDK_INCLUDE_DIR ${CORE_SDK_DIR}/include)
			SET(CORE_SDK_LIB_DIR ${CORE_SDK_DIR}/lib)
		ELSEIF (CMAKE_C_COMPILER MATCHES "hisiv600")
			SET(CORE_SDK_DIR ${THIRD_PARTY}/hisiv600/core-sdk)
			SET(CORE_SDK_INCLUDE_DIR ${CORE_SDK_DIR}/include)
			SET(CORE_SDK_LIB_DIR ${CORE_SDK_DIR}/lib)
		ELSEIF (CMAKE_C_COMPILER MATCHES "himix100")
			SET(CORE_SDK_DIR ${THIRD_PARTY}/himix100/core-sdk)
			SET(CORE_SDK_INCLUDE_DIR ${CORE_SDK_DIR}/include)
			SET(CORE_SDK_LIB_DIR ${CORE_SDK_DIR}/lib)
		ELSEIF (CMAKE_C_COMPILER MATCHES "himix200")
			SET(CORE_SDK_DIR ${THIRD_PARTY}/himix200/core-sdk)
			SET(CORE_SDK_INCLUDE_DIR ${CORE_SDK_DIR}/include)
			SET(CORE_SDK_LIB_DIR ${CORE_SDK_DIR}/lib)
		ENDIF()
	ELSE()
		FIND_PATH(CORE_SDK_INCLUDE_DIR NAMES SDAVCommn.h PATHS ${THIRD_PARTY}/gcc/core-sdk/include)
		FIND_PATH(CORE_SDK_LIB_DIR NAMES libBase.a PATHS ${THIRD_PARTY}/gcc/core-sdk/lib)
	ENDIF()	

	SET(CORE_SDK_LIBS ${CORE_SDK_LIB_DIR}/libBase.a ${CORE_SDK_LIB_DIR}/libQosFec.a)
ENDIF()
